package io.renren.modules.cgs.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.modules.cgs.dao.TCgsBusinessBookInfoDao;
import io.renren.modules.cgs.entity.TCgsBusinessBookInfoEntity;
import io.renren.modules.cgs.service.TCgsBusinessBookInfoService;



@Service("tCgsBusinessBookInfoService")
public class TCgsBusinessBookInfoServiceImpl implements TCgsBusinessBookInfoService {
	@Autowired
	private TCgsBusinessBookInfoDao tCgsBusinessBookInfoDao;
	
	@Override
	public TCgsBusinessBookInfoEntity queryObject(String id){
		return tCgsBusinessBookInfoDao.queryObject(id);
	}
	
	@Override
	public List<TCgsBusinessBookInfoEntity> queryList(Map<String, Object> map){
		return tCgsBusinessBookInfoDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return tCgsBusinessBookInfoDao.queryTotal(map);
	}
	
	@Override
	public void save(TCgsBusinessBookInfoEntity tCgsBusinessBookInfo){
		tCgsBusinessBookInfoDao.save(tCgsBusinessBookInfo);
	}
	
	@Override
	public void update(TCgsBusinessBookInfoEntity tCgsBusinessBookInfo){
		tCgsBusinessBookInfoDao.update(tCgsBusinessBookInfo);
	}
	
	@Override
	public void delete(String id){
		tCgsBusinessBookInfoDao.delete(id);
	}
	
	@Override
	public void deleteBatch(String[] ids){
		tCgsBusinessBookInfoDao.deleteBatch(ids);
	}

    @Override
    public List<Map<String, Object>> queryCgsForList() {
        return tCgsBusinessBookInfoDao.queryCgsForList();
    }
}
